Optimal. Leaf size=65 \[ \frac {2 b x^3}{15 c}+\frac {b \text {ArcTan}\left (\sqrt {c} x\right )}{5 c^{5/2}}-\frac {b \tanh ^{-1}\left (\sqrt {c} x\right )}{5 c^{5/2}}+\frac {1}{5} x^5 \left (a+b \tanh ^{-1}\left (c x^2\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {6037, 327, 304,
209, 212} \begin {gather*} \frac {1}{5} x^5 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )+\frac {b \text {ArcTan}\left (\sqrt {c} x\right )}{5 c^{5/2}}-\frac {b \tanh ^{-1}\left (\sqrt {c} x\right )}{5 c^{5/2}}+\frac {2 b x^3}{15 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 327
Rule 6037
Rubi steps
\begin {align*} \int x^4 \left (a+b \tanh ^{-1}\left (c x^2\right )\right ) \, dx &=\frac {1}{5} x^5 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac {1}{5} (2 b c) \int \frac {x^6}{1-c^2 x^4} \, dx\\ &=\frac {2 b x^3}{15 c}+\frac {1}{5} x^5 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac {(2 b) \int \frac {x^2}{1-c^2 x^4} \, dx}{5 c}\\ &=\frac {2 b x^3}{15 c}+\frac {1}{5} x^5 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac {b \int \frac {1}{1-c x^2} \, dx}{5 c^2}+\frac {b \int \frac {1}{1+c x^2} \, dx}{5 c^2}\\ &=\frac {2 b x^3}{15 c}+\frac {b \tan ^{-1}\left (\sqrt {c} x\right )}{5 c^{5/2}}-\frac {b \tanh ^{-1}\left (\sqrt {c} x\right )}{5 c^{5/2}}+\frac {1}{5} x^5 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 93, normalized size = 1.43 \begin {gather*} \frac {2 b x^3}{15 c}+\frac {a x^5}{5}+\frac {b \text {ArcTan}\left (\sqrt {c} x\right )}{5 c^{5/2}}+\frac {1}{5} b x^5 \tanh ^{-1}\left (c x^2\right )+\frac {b \log \left (1-\sqrt {c} x\right )}{10 c^{5/2}}-\frac {b \log \left (1+\sqrt {c} x\right )}{10 c^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 53, normalized size = 0.82
method | result | size |
default | \(\frac {a \,x^{5}}{5}+\frac {x^{5} b \arctanh \left (c \,x^{2}\right )}{5}+\frac {2 b \,x^{3}}{15 c}-\frac {b \arctanh \left (x \sqrt {c}\right )}{5 c^{\frac {5}{2}}}+\frac {b \arctan \left (x \sqrt {c}\right )}{5 c^{\frac {5}{2}}}\) | \(53\) |
risch | \(\frac {x^{5} b \ln \left (c \,x^{2}+1\right )}{10}-\frac {b \,x^{5} \ln \left (-c \,x^{2}+1\right )}{10}+\frac {a \,x^{5}}{5}+\frac {2 b \,x^{3}}{15 c}+\frac {b \ln \left (1-x \sqrt {c}\right )}{10 c^{\frac {5}{2}}}-\frac {b \ln \left (1+x \sqrt {c}\right )}{10 c^{\frac {5}{2}}}+\frac {\sqrt {-c}\, \ln \left (-\sqrt {-c}\, c -x \,c^{2}\right ) b}{10 c^{3}}-\frac {\sqrt {-c}\, \ln \left (-\sqrt {-c}\, c +x \,c^{2}\right ) b}{10 c^{3}}\) | \(128\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 69, normalized size = 1.06 \begin {gather*} \frac {1}{5} \, a x^{5} + \frac {1}{30} \, {\left (6 \, x^{5} \operatorname {artanh}\left (c x^{2}\right ) + c {\left (\frac {4 \, x^{3}}{c^{2}} + \frac {6 \, \arctan \left (\sqrt {c} x\right )}{c^{\frac {7}{2}}} + \frac {3 \, \log \left (\frac {c x - \sqrt {c}}{c x + \sqrt {c}}\right )}{c^{\frac {7}{2}}}\right )}\right )} b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] Leaf count of result is larger than twice the leaf count of optimal. 102 vs.
\(2 (49) = 98\).
time = 0.36, size = 197, normalized size = 3.03 \begin {gather*} \left [\frac {3 \, b c^{3} x^{5} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + 6 \, a c^{3} x^{5} + 4 \, b c^{2} x^{3} + 6 \, b \sqrt {c} \arctan \left (\sqrt {c} x\right ) + 3 \, b \sqrt {c} \log \left (\frac {c x^{2} - 2 \, \sqrt {c} x + 1}{c x^{2} - 1}\right )}{30 \, c^{3}}, \frac {3 \, b c^{3} x^{5} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + 6 \, a c^{3} x^{5} + 4 \, b c^{2} x^{3} + 6 \, b \sqrt {-c} \arctan \left (\sqrt {-c} x\right ) - 3 \, b \sqrt {-c} \log \left (\frac {c x^{2} - 2 \, \sqrt {-c} x - 1}{c x^{2} + 1}\right )}{30 \, c^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 185 vs.
\(2 (58) = 116\).
time = 5.80, size = 185, normalized size = 2.85 \begin {gather*} \begin {cases} \frac {a x^{5}}{5} + \frac {b x^{5} \operatorname {atanh}{\left (c x^{2} \right )}}{5} + \frac {2 b x^{3}}{15 c} - \frac {b \sqrt {- \frac {1}{c}} \log {\left (x - \sqrt {- \frac {1}{c}} \right )}}{10 c^{2}} + \frac {b \sqrt {- \frac {1}{c}} \log {\left (x + \sqrt {- \frac {1}{c}} \right )}}{10 c^{2}} - \frac {b \log {\left (x - \sqrt {- \frac {1}{c}} \right )}}{10 c^{3} \sqrt {\frac {1}{c}}} - \frac {b \log {\left (x + \sqrt {- \frac {1}{c}} \right )}}{10 c^{3} \sqrt {\frac {1}{c}}} + \frac {b \log {\left (x - \sqrt {\frac {1}{c}} \right )}}{5 c^{3} \sqrt {\frac {1}{c}}} + \frac {b \operatorname {atanh}{\left (c x^{2} \right )}}{5 c^{3} \sqrt {\frac {1}{c}}} & \text {for}\: c \neq 0 \\\frac {a x^{5}}{5} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.48, size = 73, normalized size = 1.12 \begin {gather*} \frac {1}{10} \, b x^{5} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + \frac {1}{5} \, a x^{5} + \frac {2 \, b x^{3}}{15 \, c} + \frac {b \arctan \left (\sqrt {c} x\right )}{5 \, c^{\frac {5}{2}}} + \frac {b \arctan \left (\frac {c x}{\sqrt {-c}}\right )}{5 \, \sqrt {-c} c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.98, size = 72, normalized size = 1.11 \begin {gather*} \frac {a\,x^5}{5}+\frac {2\,b\,x^3}{15\,c}+\frac {b\,\mathrm {atan}\left (\sqrt {c}\,x\right )}{5\,c^{5/2}}+\frac {b\,x^5\,\ln \left (c\,x^2+1\right )}{10}-\frac {b\,x^5\,\ln \left (1-c\,x^2\right )}{10}+\frac {b\,\mathrm {atan}\left (\sqrt {c}\,x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{5\,c^{5/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________